package cn.wolfcode.luowowo.hotel.service.impl;

import cn.wolfcode.luowowo.hotel.domain.HotelTag;
import cn.wolfcode.luowowo.hotel.domain.HotelTagDetail;
import cn.wolfcode.luowowo.hotel.domain.SpecialHotel;
import cn.wolfcode.luowowo.hotel.domain.SpecialHotelDetail;
import cn.wolfcode.luowowo.hotel.mapper.HotelTagMapper;
import cn.wolfcode.luowowo.hotel.service.IHotelTagService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class HotelTagServiceImpl implements IHotelTagService {

    @Autowired
    private HotelTagMapper hotelTagMapper;

    @Override
    public List<HotelTag> all() {

        return hotelTagMapper.selectAll();
    }

    @Override
    public List<HotelTagDetail> selectThemeDetail(long hotelTagId) {

        return hotelTagMapper.selectThemeDetail(hotelTagId);
    }

    @Override
    public List<SpecialHotel> selectAllHotelCity() {
        return hotelTagMapper.selectAllHotelCity();
    }

    @Override
    public List<SpecialHotelDetail> gainAllSpecialHotelDetail(long specailHotelId) {
        return hotelTagMapper.gainAllSpecialHotelDetail(specailHotelId);
    }

    @Override
    public List<SpecialHotelDetail> gainAllSpecialHotelDetailByCityId(long cityId) {

        return hotelTagMapper.gainAllSpecialHotelDetailByCityId(cityId);
    }

    @Override
    public List<SpecialHotelDetail> gainAllSpecialHotelDetailByDestId(String destId) {

        return hotelTagMapper.gainAllSpecialHotelDetailByDestId(destId);
    }
}
